Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / ComObject Class / As Method / As<T>(IntPtr) Method
The type of the COM interface to query
The managed COM object.

In This Topic
    As<T>(IntPtr) Method
    In This Topic
    Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid,IntPtr))
    Syntax
    'Declaration
     
    Public Overloads Shared Function As(Of T As ComObject)( _
       ByVal iunknownPtr As System.IntPtr _
    ) As T
    public static T As<T>( 
       System.IntPtr iunknownPtr
    )
    where T: ComObject

    Parameters

    iunknownPtr
    The managed COM object.

    Type Parameters

    T
    The type of the COM interface to query

    Return Value

    An instance of the queried interface
    See Also